import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home'
import MediaPublicSentimentMain from '@/components/mediaPublicSentiment/Main'
// 舆情控制
import MediaPublicSentimentControlMain from '@/components/mediaPublicSentiment/ControlMain'
import MediaPublicSentimentControlList from '@/components/mediaPublicSentiment/ControlList'
import MediaPublicSentimentControlDetail from '@/components/mediaPublicSentiment/ControlDetail'
// 工单处理
import MediaPublicSentimentOrderList from '@/components/mediaPublicSentiment/OrderList'
import MediaPublicSentimentOrderDetail from '@/components/mediaPublicSentiment/OrderDetail'
// 处理进度
import MediaPublicSentimentProgressList from '@/components/mediaPublicSentiment/ProgressList'
import MediaPublicSentimentProgressDetail from '@/components/mediaPublicSentiment/ProgressDetail'
// 统计分析
import MediaPublicSentimentStatisticalAnalysis from '@/components/mediaPublicSentiment/StatisticalAnalysis'

import PersonalPublicSentimentMain from '@/components/personalPublicSentiment/Main'
import ProductAnaysisMain from '@/components/productAnaysis/Main'
import UserMain from '@/components/user/Main'
import UserInfo from '@/components/user/Info'
import Version from '@/components/user/Version'
import Test from '@/components/user/Test'
import UserList from '@/components/user/List'
import NameList from '@/components/user/NameList'
import UserBackground from '@/components/user/Background'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/mediapublicsentiment',
      name: 'MediaPublicSentimentMain',
      component: MediaPublicSentimentMain
    },
    // 媒体舆情监控
    {
      path: '/mediapublicsentiment/control',
      name: 'MediaPublicSentimentControlMain',
      component: MediaPublicSentimentControlMain
    },
    {
      path: '/mediapublicsentiment/control/list',
      name: 'MediaPublicSentimentControlList',
      component: MediaPublicSentimentControlList
    },
    {
      path: '/mediapublicsentiment/control/detail',
      name: 'MediaPublicSentimentControlDetail',
      component: MediaPublicSentimentControlDetail
    },
    {
      path: '/mediapublicsentiment/order/list',
      name: 'MediaPublicSentimentOrderList',
      component: MediaPublicSentimentOrderList
    },
    {
      path: '/mediapublicsentiment/order/detail',
      name: 'MediaPublicSentimentOrderDetail',
      component: MediaPublicSentimentOrderDetail
    },
    {
      path: '/mediapublicsentiment/progress/list',
      name: 'MediaPublicSentimentProgressList',
      component: MediaPublicSentimentProgressList
    },
    {
      path: '/mediapublicsentiment/progress/detail',
      name: 'MediaPublicSentimentProgressDetail',
      component: MediaPublicSentimentProgressDetail
    },
    {
      path: '/mediapublicsentiment/statisticalanalysis',
      name: 'MediaPublicSentimentStatisticalAnalysis',
      component: MediaPublicSentimentStatisticalAnalysis
    },
    // 个人舆情
    {
      path: '/personalpublicsentiment',
      name: 'PersonalPublicSentimentMain',
      component: PersonalPublicSentimentMain
    },

    // 产品剖析
    {
      path: '/productanaysis',
      name: 'ProductAnaysisMain',
      component: ProductAnaysisMain
    },

    // 我的
    {
      path: '/user',
      name: 'UserMain',
      component: UserMain
    },
    {
      path: '/user/info',
      name: 'UserInfo',
      component: UserInfo
    },
    {
      path: '/user/version',
      name: 'Version',
      component: Version
    },
    {
      path: '/user/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/user/list',
      name: 'UserList',
      component: UserList
    },
    {
      path: '/user/namelist',
      name: 'NameList',
      component: NameList
    },
    {
      path: '/user/background',
      name: 'UserBackground',
      component: UserBackground
    }
  ]
})
